package ch17.chat.client;

public class ClientMain {

	public static void main(String[] args) {
		String host = args.length > 0 ? args[0] : "localhost";
		int port = args.length > 1 ? Integer.parseInt(args[1]) : 8090;
		ChatClient client = new ChatClient(host, port);
		ChatUI chatUI = new ChatUI(client);
		client.setListener(chatUI);
		chatUI.setVisible(true);
	}
}
